using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using EscapeZone.Mapping;
using EscapeZone.Mapping.Elements;
using EscapeZone.Screens;
using EscapeZone.Serialization;
using Microsoft.Xna.Framework;
using XnaPlus.Common.Geometry;

namespace EscapeZone
{
#if WINDOWS || XBOX
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            using (EscapeGame game = new EscapeGame())
            {
                game.Run();
            }
        }

        static void CreateSampleMap()
        {
            MapDefinition definition = new MapDefinition();

            definition.MapElements.Add(new Coin());
            definition.MapElements.Add(new GoalZone());
            definition.MapElements.Add(new Spawn());
            definition.MapElements.Add(new Wall());

            definition.MapElementDefinitions.Add(new CameraDefinition());
            definition.MapElementDefinitions.Add(new GuardDefinition { Checkpoints = new List<Vector2>(new[] { Vector2.Zero }) });

            MapSerializer ser = new MapSerializer();
            ser.SaveMap(definition, "sample");
        }
    }
#endif
}

